package com.lai.gulimall;

import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

//开启远程调用 扫描com.lai.gulimall.member.feign包下的全部加了@FeignClient注解的接口
@EnableFeignClients(basePackages = "com.lai.gulimall.member.feign")
@EnableDiscoveryClient  //开启服务注册与发现
@MapperScan("com.lai.gulimall.member.dao")
@SpringBootApplication
public class GulimallMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallMemberApplication.class, args);
    }

}
